package com.efast.dmom.mes.entity.base;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 
 * @author WilliamWu
 *
 */





public abstract class BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	// id 主键
	// description 描述,可以记录操作说明
	// site_id 平台代码，用于多平台实例整合
	// creation_time 创建时间
	// creation_time_zone 创建时间的时区
	// creator 创建用户
	// last_modified_time 最后修改时间
	// last_modified_time_zone 最后修改时间的时区
	// last_modifier 最后修改用户
	// creation_pid 创建的PID
	// last_modified_pid 最后更新的PID
	// row_status 行状态 
	// row_trx_id 行的操作日志id
	private long id;
	private String description;
	@JsonIgnore
	private int siteId;
	@JsonIgnore
	private LocalDateTime creationTime;
	@JsonIgnore
	private String creationTimeZone;
	@JsonIgnore
	private String creator;
	@JsonIgnore
	private LocalDateTime lastModifiedTime;
	@JsonIgnore
	private String lastModifiedTimeZone;
	@JsonIgnore
	private String lastModifier;
	@JsonIgnore
	private int creationPid;
	@JsonIgnore
	private int lastModifiedPid;
	@JsonIgnore
	private int rowStatus;
	@JsonIgnore
	private long rowTrxId;
	@JsonIgnore
	private String companyCode;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id=id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public LocalDateTime getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(LocalDateTime creationTime) {
		this.creationTime = creationTime;
	}

	public String getCreationTimeZone() {
		return creationTimeZone;
	}

	public void setCreationTimeZone(String creationTimeZone) {
		this.creationTimeZone = creationTimeZone;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public LocalDateTime getLastModifiedTime() {
		return lastModifiedTime;
	}

	public void setLastModifiedTime(LocalDateTime lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	public String getLastModifiedTimeZone() {
		return lastModifiedTimeZone;
	}

	public void setLastModifiedTimeZone(String lastModifiedTimeZone) {
		this.lastModifiedTimeZone = lastModifiedTimeZone;
	}

	public String getLastModifier() {
		return lastModifier;
	}

	public void setLastModifier(String lastModifier) {
		this.lastModifier = lastModifier;
	}

	public int getCreationPid() {
		return creationPid;
	}

	public void setCreationPid(int creationPid) {
		this.creationPid = creationPid;
	}

	public int getLastModifiedPid() {
		return lastModifiedPid;
	}

	public void setLastModifiedPid(int lastModifiedPid) {
		this.lastModifiedPid = lastModifiedPid;
	}

	public int getRowStatus() {
		return rowStatus;
	}

	public void setRowStatus(int rowStatus) {
		this.rowStatus = rowStatus;
	}

	public long getRowTrxId() {
		return rowTrxId;
	}

	public void setRowTrxId(long rowTrxId) {
		this.rowTrxId = rowTrxId;
	}
	@Override
	public String toString() {
		return "BaseEntity [description=" + description + ", siteId=" + siteId + ", creationTime=" + creationTime
				+ ", creationTimeZone=" + creationTimeZone + ", creator=" + creator + ", lastModifiedTime="
				+ lastModifiedTime + ", lastModifiedTimeZone=" + lastModifiedTimeZone + ", lastModifier=" + lastModifier
				+ ", creationPid=" + creationPid + ", lastModifiedPid=" + lastModifiedPid + ", rowStatus=" + rowStatus
				+ ", rowTrxId=" + rowTrxId + "]";
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	
}
